Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Feature/#46 - 각 가게별 Event 스케줄링 로직 구현 #50

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

dongkyeomjang
Copy link
Collaborator

Related issue 🛠

closed #46

어떤 변경사항이 있었나요?

  • 🐞 BugFix Something isn't working
  • 💻 CrossBrowsing Browser compatibility
  • 🌏 Deploy Deploy
  • 🎨 Design Markup & styling
  • 📃 Docs Documentation writing and editing (README.md, etc.)
  • ✨ Feature Feature
  • 🔨 Refactor Code refactoring
  • ⚙️ Setting Development environment setup
  • ✅ Test Test related (storybook, jest, etc.)

CheckPoint ✅

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • PR 컨벤션에 맞게 작성했습니다. (필수)
  • Docker Container 환경으로 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트). (필수)
  • Feature의 경우, API 문서 업데이트를 완료했습니다. (선택)
  • BugFix의 경우, 버그의 원인을 파악하였습니다. (선택)

Work Description ✏️

  • 가게 생성 시(더미 생성 시) 이벤트 생성 후, 해당 이벤트의 종료 날짜를 트리거로 Job 생성하는 이벤트 publish
  • 이벤트 종료 날짜가 될 시, 트리거 발동 -> 스케줄러에 Job 등록
  • 등록된 Job은 다음과 같은 작업 수행.
    1. 현재 진행중인 이벤트의 상태를 티켓 발행으로 변경 및 각각의 상태 변경 날짜 입력
    1. 새로운 이벤트 생성
    1. 새로운 이벤트에 대한 가상 계좌 생성
    1. 이벤트에 은행 정보 업데이트
    1. 새롭게 생성된 이벤트에 대한 종료일자에 맞춘 이벤트 발행. 발행한 이벤트는 이벤트 리스너에 의해 스케줄러에 등록
    1. 종료된 이벤트와 연결된 가상계좌에 모급된 금액을 조회
    1. 종료된 이벤트와 연결된 가상계좌에 모금된 금액을 고용주 계좌에 이체
    1. 발행 가능한 식권만큼 랜덤한 유저 선택(루프)
    1. 해당 이벤트에 대해 동참하기를 한 유저인지 확인하고, 해당 이벤트에 동참하지 않은 랜덤하게 선택된 유저에게만 티켓 발행(루프)

Uncompleted Tasks 😅

  • 글로벌 잡 큐에 스케줄 등록
  • 티켓 발행 시 푸시알림

To Reviewers 📢

@dongkyeomjang dongkyeomjang added ✨ Feature 기능 개발 dongkyeomjang assigned to dongkyeomjang labels Nov 20, 2024
@dongkyeomjang dongkyeomjang self-assigned this Nov 20, 2024
@dongkyeomjang dongkyeomjang linked an issue Nov 20, 2024 that may be closed by this pull request
1 task
@dongkyeomjang dongkyeomjang merged commit 4df7b34 into dev Nov 20, 2024
1 check passed
@dongkyeomjang dongkyeomjang deleted the Feature/#46 branch November 20, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dongkyeomjang assigned to dongkyeomjang ✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Feature - 각 가게별 Event 스케줄링 로직 구현
1 participant